import { cmsConfig } from '@/core/index'
import {store} from '@/core/store'

export default () => {
    const authInfo = () => {
        return window.$axios({
            url: `${process.env.VUE_APP_BASE_GEO}api/appadmin/auth/AuthInfo`,
            method: 'get',
            headers: {
              'App-Sign': cmsConfig.appSign,
              Authorization: `Bearer ${store.getters.token}`
            }
        })
    }


    return {
      authInfo
    }
}